
<admintpl file="header" />
<body>

<div class="wrap js-check-wrap">

    <ul class="nav nav-tabs">
        <li><a href="{:U('Label/AdminIndex/label_list')}">标签列表</a></li>
        <li class="active"><a>新建标签</a></li>
    </ul>

    <form class="form-horizontal js-ajax-form" method="post">

        <input type="hidden" name="id" value="{$info['id']}">

        <div class="tabbable">
            <div class="tab-content">
                <div class="tab-pane active">
                    <fieldset>

                        <div class="control-group">
                            <label class="control-label">标签名称</label>
                            <div class="controls">
                                <input type="text" name="name" value="{$info.name}"><span class="form-required">*</span>
                            </div>
                        </div>

                        <div class="control-group">
                            <label class="control-label">所属分类</label>
                            <div class="controls">
                                <select name="label_type_id">
                                    <option value="0">请选择分类</option>
                                    <volist name="label_types" id="vo">
                                        <option value="{$vo.id}" {$vo['id'] == $info['label_type_id'] ? "selected" : ''}>{$vo.name}</option>
                                    </volist>
                                </select>
                            </div>
                        </div>

                        <div class="control-group">
                            <label class="control-label">描述</label>
                            <div class="controls">
                                <textarea name="desc">{$info.desc}</textarea>
                            </div>
                        </div>
                    </fieldset>
                </div>
            </div>
        </div>
        <div class="form-actions">
            <button class="btn btn-primary" type="submit">保存</button>
            <a class="btn" href="javascript:history.back(-1);">返回</a>
        </div>
    </form>
</div>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>

</body>
</html>